const store = require("./store");
const {changeNameAction,changeAgeAction} = require("./store/action");
// 订阅
store.subscribe(() => {
  console.log(store.getState());
});

store.dispatch(changeNameAction("johh"));
store.dispatch(changeAgeAction(66));
// store.dispatch({ type: "CHANGE_NAME", name: "johh" });
// store.dispatch({ type: "CHANGE_NAME", name: "2222" });
// store.dispatch({ type: "CHANGE_AGE", age: 66 });
// store.dispatch({ type: "CHANGE_AGE", age: 88 });
